# encoding: utf-8

from flask_migrate import Migrate,MigrateCommand
from zlktqa import app
from flask_script import Manager
from exts import db
import config

from models import User, Question
# from zlktqa import create_app


app.config.from_object(config)
db.init_app(app)
manager = Manager(app)

migrate = Migrate(app,db)


manager.add_command('db',MigrateCommand)


# app = create_app()
# #创建数据库脚本
# @manager.command
# def create_db():
#     db.create_all()


if __name__ == "__main__":
    manager.run()
 